﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    public class ProductionMaterilasDto
    {
        /// <summary>
        /// 生产订单号
        /// </summary>
        public string OrderSn { get; set; }

        /// <summary>
        /// 公司编码
        /// </summary>
        public string PompanyCode { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string PompanyName { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 产品编码
        /// </summary>
        public string ProductCode { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public DateTime DocumentDate { get; set; }

        /// <summary>
        /// List集合
        /// </summary>
        public List<ProductionMaterilasOrderDetailDto> ChildList { get; set; }

    }

    public class ProductionMaterilasOrderDetailDto
    {
        /// <summary>
        /// 行项目
        /// </summary>
        public int IineItem { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string TMaterialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string TMaterialName { get; set;}

        /// <summary>
        /// 规格型号
        /// </summary>
        public string ModelSpec { get; set; }

        /// <summary>
        /// 退料数量
        /// </summary>
        public decimal Qty { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitName { get; set; }

        /// <summary>
        /// 单位编码
        /// </summary>
        public string UnitCode { get; set; }
    }

}
